package com.ogawa.project6602.dialog

import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.text.InputFilter
import android.view.View
import android.view.Window
import android.widget.EditText
import android.widget.TextView
import com.ogawa.project6602.R

class SuanTongReadyDialog(context: Context) : Dialog(context) {
    private var confirmBt: TextView

    init {
        window?.requestFeature(Window.FEATURE_NO_TITLE)
        window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
        setContentView(R.layout.dialog_suantong_ready)
        confirmBt = findViewById(R.id.confirmBt)
        findViewById<TextView>(R.id.cancelButton).setOnClickListener { dismiss() }
    }

    fun setOnConfirmBtClickListener(listener: View.OnClickListener) {
        confirmBt.setOnClickListener(listener)
    }
}